Security News
npm Updates Search Experience with New Objective Sorting Options
npm has a revamped search experience with new, more transparent sorting options—Relevance, Downloads, Dependents, and Publish Date.
@ledgerhq/cryptoassets
Advanced tools
Ledger's material for crypto currencies, tokens and fiats. Also includes signatures required by Nano devices for these tokens.
DO NOT EDIT because this library is generated.
There are two modes of usage of this library.
@ledgerhq/cryptoassets
@ledgerhq/cryptoassets/data/*
. For instance, importing the ERC20 signatures can be done with @ledgerhq/cryptoassets/data/erc20-signatures
sub module.these are either "dead"/"burn" addresses OR "abandon" seed addresses. These addresses are PUBLIC addresses We use them for tests and also for dry-run estimations DO NOT USE AS RECIPIENT OR SIGN TRANSACTIONS INTO THEM
Type: Partial<Record<any, string>>
Returns a valid address for a given currency. These addresses are PUBLIC addresses We use them for tests and also for dry-run estimations DO NOT USE AS RECIPIENT OR SIGN TRANSACTIONS INTO THEM
currencyId
anyReturns string
currency
CryptoCurrencyid
stringReturns void
withDevCrypto
any (optional, default false
)withTerminated
any (optional, default false
)Returns Array<CryptoCurrency>
f
anyReturns (CryptoCurrency | null | undefined)
scheme
anyReturns (CryptoCurrency | null | undefined)
ticker
anyReturns (CryptoCurrency | null | undefined)
id
anyReturns (CryptoCurrency | null | undefined)
keyword
anytests
(optional, default ["keywords","name","id","ticker","manager"]
)Returns (CryptoCurrency | null | undefined)
id
anyReturns boolean
id
anyReturns CryptoCurrency
id
stringReturns ({config: string, signature: string} | null | undefined)
ticker
anyReturns boolean
ticker
anyReturns (FiatCurrency | null | undefined)
ticker
anyReturns FiatCurrency
Returns Array<FiatCurrency>
Only for jest purpose, clean object to be empty
Returns void
Only for jest purpose, clear all the init list
Returns void
options
Partial<TokensListOptions>?Returns Array<TokenCurrency>
currency
CryptoCurrencyoptions
Partial<TokensListOptions>?Returns Array<TokenCurrency>
currency
CryptoCurrencyticker
stringReturns (TokenCurrency | null | undefined)
id
stringReturns (TokenCurrency | null | undefined)
id
stringReturns boolean
id
stringReturns TokenCurrency
Delete previous token entry to all array
token
TokenCurrencyWe clean all the reference of an existing token, if an hash doesn't match. Like this we can update any change from a already added token coming from Dynamic CAL and maintain it up to date without having to release a new version of LLD or LLM
Import crypto assets data guide:
Regenerate data:
node script/crypto-assets-importer/index.js ~/dev/crypto-assets
node script/crypto-assets-importer/tron/sync-trc10-tokens.js
NB: currencies asa, esdt, spl, stellar and trc20 are currently manually maintained.
Update test and snapshots in the monorepo:
https://ledgerhq.atlassian.net/wiki/spaces/WALLETCO/pages/3740205141/CAL+updates
FAQs
Ledger crypto-assets list
We found that @ledgerhq/cryptoassets demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 8 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
npm has a revamped search experience with new, more transparent sorting options—Relevance, Downloads, Dependents, and Publish Date.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.